package com.future.hedongjun.mine.adapter;

import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.future.baselib.utils.GlideUtils;
import com.future.hedongjun.R;
import com.future.hedongjun.common.PriceHelper;
import com.future.hedongjun.mall.bean.OrderDetail;

import java.util.List;

/**
 * Created by jniu on 2017/9/8.
 */

public class RefundDetailAdapter extends BaseQuickAdapter<OrderDetail.GoodsBean, BaseViewHolder> {


    public RefundDetailAdapter(@Nullable List<OrderDetail.GoodsBean> data) {
        super(R.layout.item_refund_detial, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, OrderDetail.GoodsBean item) {
        GlideUtils.loadImage(mContext, "logo_img", (ImageView) helper.getView(R.id.imageView));
        helper.setText(R.id.tv_name, "商品名称");
        helper.setText(R.id.tv_tib, "商品属性们");

        if (helper.getAdapterPosition() == getData().size() - 1) {
            helper.setVisible(R.id.view_line, false);
        }
    }
}
